home *** CD-ROM | disk | FTP | other *** search
- -- card: 15004 from stack: in.6
- -- bmap block id: 15257
- -- flags: 0000
- -- background id: 2598
- -- name: rn-send
- ----- HyperTalk script -----
-
- on HideLetterBs
- hide card button id 11
- hide card button id 4
- hide card button id 5
- end HideLetterBs
- on ShowLetterBs
- show card button id 11
- show card button id 4
- show card button id 5
- end ShowLetterBs
-
- on HideListBs
- hide card button id 10
- hide card button id 9
- hide card button id 12
- end HideListBs
- on ShowListBs
- SHow card button id 10
- show card button id 9
- show card button id 12
- end ShowListBs
-
- on NewsStateDef
- global NewsState
- if ("unread article" is in card field 1) then
- put offset("unread article",card field 1) into offsetti
- put char offsetti to offsetti+80 of card field 1 into rivi
- put offset("--read now?",rivi) into off2
- get char 19 to off2-1 of rivi
- put "<" & it & ">" into card field "Listan Nimi" of card "rn"
- end if
-
- if (("article" & space is in line 1 to 3 of card field 1) and (" in" & space is in line 1 to 3 of card field 1)) then
- put offset(" in ",line 1 to 3 of card field 1) into offsetti
- put char offsetti to offsetti+80 of line 1 to 3 of card field 1 into rivi
- --put rivi
- put offset(":",rivi) into off2
- get offset(" (",rivi)
- if it > 0 then
- if it < off2 then
- put it into off2
- end if
- end if
- get char 5 to off2-1 of rivi
- put "<" & it & ">" into card field "Listan Nimi" of card "rn"
- end if
-
- hide message
- put space into NewsState
- -- unread articles in
- if offset("unread article",card field 1) > 0 then
- put "List" into NewsState
- ShowListBs
- HideLetterBs
- end if
- if offset("End of article",card field 1) > 0 then
- ShowLetterBs
- HideListBs
- hide card button id 5
- put "Letter end of" into NewsState
- end if
- if offset("--MORE--(",card field 1) > 0 or offset("[Type space to",card field 1) > 0 then
- ShowLetterBs
- HideListBs
- put "Letter more" into NewsState
- show card button id 5
- end if
-
- put NewsState into card field "UserMessage"
- end NewsStateDef
-
- on opencard
- -- put "Card Open"
- -- NewsStateDef
- end opencard
-
-
-
-
- -- part 2 (field)
- -- low flags: 02
- -- high flags: 6007
- -- rect: left=8 top=71 right=337 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 4
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Field 1
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=435 top=17 right=34 bottom=509
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 4
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: LineCount
-
-
- -- part 8 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=281 top=325 right=342 bottom=486
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: UserMessage
-
-
- -- part 9 (button)
- -- low flags: 80
- -- high flags: A003
- -- rect: left=58 top=57 right=74 bottom=164
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Read this list
- ----- HyperTalk script -----
- on mouseUp
- openascii
- writeascii "y"
- put space into card field 1
- displayscreen "dis"
- NewsStateDef
- closeascii
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 80
- -- high flags: A003
- -- rect: left=57 top=20 right=39 bottom=165
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next list
- ----- HyperTalk script -----
- on mouseup
- openascii
- writeascii "n"
- put space into card field 1
- displayscreen "dis","read now?"
- NewsStateDef
- closeascii
- end mouseup
-
-
-
- -- part 12 (button)
- -- low flags: 80
- -- high flags: A003
- -- rect: left=58 top=39 right=57 bottom=163
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Previous list
- ----- HyperTalk script -----
- on mouseup
- openascii
- writeascii "p"
- put space into card field 1
- displayscreen "dis","read now?"
- NewsStateDef
- closeascii
- end mouseup
-
-
-
- -- part 22 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=393 top=325 right=341 bottom=487
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Speak Text
- ----- HyperTalk script -----
- on mouseUp
- ReadField1
- end mouseUp
-
-
-
- -- part 23 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=214 top=323 right=342 bottom=280
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: PANIC
- ----- HyperTalk script -----
- on mouseup
- PANIC
- end mouseup
-
-
-
- -- part 26 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=308 top=57 right=71 bottom=512
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: Listan Nimi
-
-
- -- part 28 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=207 top=26 right=46 bottom=349
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Reply to the person
- ----- HyperTalk script -----
- on mouseUp
- go card "rn"
- openascii
- put number of lines of card field 1 of card "rn-send" into count
- repeat with i=1 to count
- get line i of card field 1 of card "rn-send"
- writeascii it & return
- end repeat
- put space into card field 1
- writeascii numtochar(4)
- displayscreen "dis","%"
- put space into card field 1
- writeascii "fg" & return
- displayscreen "dis","--more--","--read now?"
- put empty into card field 1
- writeascii "r" & return
- displayscreen "dis","Prepare"
- writeascii "/tmp/NewsSend" & return
- displayscreen "dis","abort,"
- writeascii "s" & return
- displayscreen "dis"
- if "signature" is in card field 1 then
- writeascii "y" & return
- end if
- put empty into card field 1
- displayscreen "dis","--what next?"
- closeascii
-
- end mouseUp
-
-
-
- -- part 29 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=207 top=45 right=65 bottom=349
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Reply to the list
- ----- HyperTalk script -----
- on mouseUp
- go card "rn"
- openascii
- put number of lines of card field 1 of card "rn-send" into count
- repeat with i=1 to count
- get line i of card field 1 of card "rn-send"
- writeascii it & return
- end repeat
- put space into card field 1
- writeascii numtochar(4)
- displayscreen "dis","%"
- put space into card field 1
- writeascii "fg" & return
- displayscreen "dis","--more--","--read now?"
- put empty into card field 1
- writeascii "f" & return
- displayscreen "dis","absolutely sure"
- writeascii "y" & return
- displayscreen "dis","Prepare"
- writeascii "/tmp/NewsSend" & return
- displayscreen "dis","abort,"
- writeascii "s" & return
- displayscreen "dis","--what next?"
- if "signature" is in card field 1 then
- writeascii "y" & return
- end if
- displayscreen "dis","--what next?"
- closeascii
-
- end mouseUp
-
-
-
- -- part contents for card part 3
- ----- text -----
- Lines 4
-
- -- part contents for card part 8
- ----- text -----
-
-
- -- part contents for card part 26
- ----- text -----
- <sfnet.juoru>